<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */


$defaultPage=<<<DEFAULT



{
	"key": 40,
	"list": [{
		"title": "轮播图",
		"type": "banner",
		"icon": "iconlunbo",
		"isDelete": true,
		"addNumber": 9999,
		"attr": [{
			"title": "选择模板",
			"type": "ChooseModule",
			"name": "bannerName",
			"data": [{
				"title": "通屏轮播",
				"name": "banner-tongping",
				"img": "http://lbqny.migugu.com/admin/diy/banner-tongping.png"
			}]
		}, {
			"title": "轮播图高度",
			"type": "InputNumber",
			"name": "style"
		}, {
			"title": "图片列表",
			"type": "ImageLink",
			"name": "bannerList",
			"isDraggable": true,
			"isDelete": true,
			"data": [{
				"title": "图片",
				"type": "UploadImage",
				"name": "img",
				"desc": "750*350"
			}, {
				"title": "链接类型",
				"type": "Select",
				"name": "linkType",
				"data": [{
					"label": "系统内部页面",
					"value": 4
				}, {
					"label": "其他小程序",
					"value": 2
				}, {
					"label": "跳转网页",
					"value": 3
				}, {
					"label": "拨打电话",
					"value": 1
				}]
			}, {
				"title": "链接地址",
				"type": "Tag",
				"name": "link"
			}]
		}, {
			"title": "添加模板",
			"type": "Add",
			"name": "addMouduleName",
			"addNumber": 10,
			"data": [{
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}]
		}],
		"data": {
			"style": {
				"number": 400,
				"min": 200,
				"max": 800,
				"label": "请输入",
				"height": 400,
				"whiteSpace": 0,
				"wingBlank": 0
			},
			"bannerName": "banner-tongping",
			"addMouduleName": "bannerList",
			"bannerList": [{
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}, {
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}, {
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}, {
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}]
		},
		"compontents": "base"
	}, {
		"title": "分类导航",
		"type": "restaurantCateList",
		"icon": "icondaohang3",
		"isDelete": true,
		"addNumber": 9999,
		"attr": [{
			"title": "图片列表",
			"type": "ImageLink",
			"name": "columnList",
			"isDraggable": true,
			"isDelete": true,
			"data": [{
				"title": "按钮文字",
				"type": "Input",
				"name": "title"
			}, {
				"title": "图片",
				"type": "UploadImage",
				"name": "img",
				"desc": "100*100"
			}, {
				"title": "链接类型",
				"type": "Select",
				"name": "linkType",
				"data": [{
					"label": "系统内部页面",
					"value": 4
				}, {
					"label": "其他小程序",
					"value": 2
				}, {
					"label": "跳转网页",
					"value": 3
				}, {
					"label": "拨打电话",
					"value": 1
				}]
			}, {
				"title": "链接地址",
				"type": "Tag",
				"name": "link"
			}]
		}, {
			"title": "添加模板",
			"type": "Add",
			"name": "addMouduleName",
			"addNumber": 4,
			"data": [{
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}]
		}],
		"data": {
			"addMouduleName": "columnList",
			"columnList": [{
				"title": "按钮文字",
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}, {
				"title": "按钮文字",
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}]
		},
		"compontents": "restaurantCompoent"
	}, {
		"title": "广告图",
		"type": "imagewindow",
		"icon": "iconguanggaotu",
		"isDelete": true,
		"addNumber": 9999,
		"attr": [{
			"title": "选择模板",
			"type": "ChooseModule",
			"name": "imagewindowName",
			"data": [{
				"title": "1*1",
				"name": "imagewindow-col-1",
				"img": "http://lbqny.migugu.com/admin/diy/imagewindow-col-1.png"
			}, {
				"title": "1*2",
				"name": "imagewindow-col-2",
				"img": "http://lbqny.migugu.com/admin/diy/imagewindow-col-2.png"
			}, {
				"title": "1*3",
				"name": "imagewindow-col-3",
				"img": "http://lbqny.migugu.com/admin/diy/imagewindow-col-3.png"
			}]
		}, {
			"title": "图片列表",
			"type": "ImageLink",
			"name": "imagewindowList",
			"isDraggable": true,
			"isDelete": true,
			"data": [{
				"title": "图片",
				"type": "UploadImage",
				"name": "img",
				"desc": "348*158"
			}, {
				"title": "链接类型",
				"type": "Select",
				"name": "linkType",
				"data": [{
					"label": "系统内部页面",
					"value": 4
				}, {
					"label": "其他小程序",
					"value": 2
				}, {
					"label": "跳转网页",
					"value": 3
				}, {
					"label": "拨打电话",
					"value": 1
				}]
			}, {
				"title": "链接地址",
				"type": "Tag",
				"name": "link"
			}]
		}, {
			"title": "添加模板",
			"type": "Add",
			"name": "addMouduleName",
			"addNumber": 3,
			"data": [{
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}]
		}],
		"data": {
			"row": {
				"number": 2
			},
			"style": {
				"wingBlank": 16,
				"whiteSpace": 16,
				"backgroundColor": "#fff"
			},
			"imagewindowName": "imagewindow-col-1",
			"addMouduleName": "imagewindowList",
			"imagewindowList": [{
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}, {
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}, {
				"link": [{
					"title": ""
				}],
				"linkType": 4,
				"img": [{
					"url": "http://lbqny.migugu.com/admin/diy/default.png"
				}]
			}]
		},
		"compontents": "base"
	}, {
		"model_name_key": "shop",
		"title": "卡券",
		"type": "couponList",
		"icon": "iconCouponList",
		"isDelete": true,
		"addNumber": 1,
		"attr": [{
			"title": "模板名称",
			"type": "Input",
			"name": "title",
			"maxLength": 10
		}, {
			"title": "卡券样式",
			"type": "Radio",
			"name": "type",
			"data": [{
				"label": 1,
				"title": "弹窗样式"
			}, {
				"label": 2,
				"title": "列表样式"
			}]
		}],
		"data": {
			"title": "领取卡券",
			"type": 2
		},
		"dataList": [],
		"compontents": "operate"
	}]
}


DEFAULT;


$pages = json_decode( $defaultPage , true);


return $pages;